| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | import {Inject} from '@nestjs/common'; |
||
| 5 | |||
| 6 | @QueryHandler(DownloadFileQuery) |
||
| 7 | export class DownloadFileQueryHandler { |
||
| 8 | constructor( |
||
| 9 | @Inject('IFileRepository') |
||
| 10 | private readonly fileRepository: IFileRepository |
||
| 11 | ) {} |
||
| 12 | |||
| 13 | public async execute(query: DownloadFileQuery): Promise<void> { |
||
| 14 | const file = await this.fileRepository.findOneById(query.id); |
||
| 15 | } |
||
| 17 |